import request from '@/utils/request'

// 查询活动中奖信息列表
export function listGuessPrize(query) {
  return request({
    url: '/business/guessPrize/list',
    method: 'get',
    params: query
  })
}

// 查询活动中奖信息详细
export function getGuessPrize(id) {
  return request({
    url: '/business/guessPrize/' + id,
    method: 'get'
  })
}

// 新增活动中奖信息
export function addGuessPrize(data) {
  return request({
    url: '/business/guessPrize',
    method: 'post',
    data: data
  })
}

// 修改活动中奖信息
export function updateGuessPrize(data) {
  return request({
    url: '/business/guessPrize',
    method: 'put',
    data: data
  })
}

// 删除活动中奖信息
export function delGuessPrize(id) {
  return request({
    url: '/business/guessPrize/' + id,
    method: 'delete'
  })
}
